<extend name="Base:main" />
<block name="content">
<div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
				物流单列表
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">订单号</a></li>
                <li class="am-active">{$ref['ref']}</li>
            </ol>
            <div class="tpl-portlet-components">
               
                <div class="tpl-block">

                    <div class="am-g">
                        <div class="am-u-sm-12">
                          
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            <th width="120">ID</th>
                                            <th class="table-title"  width="260px">需求名称</th>
                                            <th>预算</th>
                                            <th>收货人</th>
                                            <th>电话</th>
                                            <th>是否选定物流商</th>
                                            <th>创建时间</th>
                                            <th class="table-set" width="270">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                      <volist name="lists" id="val">
                                        
                                        <tr>
                                            <td>{$val.id}</td>
                                            <td><a href="#">{$val.name}</a></td>
                                            <td>{$val['price']}</td>
                                            <td>{$val['contacts']}</td>
                                            <td>{$val['mobile']}</td>
                                            <td><eq name="val['is_choice']" value="1">已选定</eq><eq name="val['is_choice']" value="0">未选定</eq></td>
                                            <td>{:date('Y-m-d H:i:s' , $val['add_time'] )}</td>
                                            <td>
                                                <div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-secondary"> <a href="{:U('OrderExpress/lists',array('id'=>$val['id'],'ref'=>$val['ref']))}">查看报价物流商</a></button>
                                                       
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                                <div class="am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            {$page}
                                        </ul>
                                    </div>
                                </div>
                                <hr>

                        </div>

                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>

        </div>
    <script>
            $(function () {
                var goods_type_id = $('#goods_type').val();
                if(goods_type_id){
                    $('#goods_type_id option').each(function(){
                          if( goods_type_id == $(this).attr('value') ) {
                              $(this).attr('selected' , true);
                              return false;
                          } 
                       }); 
                }
            })
          $(".check-all").click(function () {
            $(".ids").prop("checked", this.checked);
        });
          $(".ids").click(function () {
            var option = $(".ids");
            option.each(function (i) {
                if (!this.checked) {
                    $(".check-all").prop("checked", false);
                    return false;
                } else {
                    $(".check-all").prop("checked", true);
                }
            });
        });
       
    </script>
    
</block>